
from conn_mysql.api_mysql import ApiMysql

from flask import Flask, request, Blueprint, render_template

from . import app_login

app = Flask(__name__)

@app_login.route('/send_code', methods=['GET', 'POST'])

def send():

    methods = request.method

    info = request.form

    phone = info.get('user')

    with ApiMysql() as conn_api:

        conn_info = conn_api.send_verify_code(methods, phone)

    return conn_info